home *** CD-ROM | disk | FTP | other *** search
- Path: hickory.westol.com!news
- From: Mark Kintigh <breetai@oak.westol.com>
- Newsgroups: comp.lang.c
- Subject: DOS commands
- Date: Fri, 12 Jan 1996 12:04:33 -0800
- Organization: Westmoreland Online Inc.
- Message-ID: <30F6BED1.5E25@oak.westol.com>
- NNTP-Posting-Host: pm124.westol.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4a (Win16; I)
-
- wayneft@indirect.com wrote:
- >
- > I know that this is probably a stupid question, but it's been a while
- > since I have programmed in C. My question is what is the command in a
- > C program that executes a DOS command such as DIR, or COPY. I've
- > looked through all my books and for some reason I just can't seem to
- > find it. I know it is a real simple command that is in the dos.h
- > header file. If someone could email me or post the command I would be
- > very grateful, I need it because I have to something for work.
-
- There are two ways:
- exec()
- system()
- Choose the one that suits you best!
- --
- _____
- / /## breetai@oak.westol.com
- / /#### ____
- (| []/ o ##) "We met the enemy, and they were'nt us, then | _|||
- |\ \_/ /\ # /| we faced a pannel of 'us' and found they were || ||
- | \-\ ==== /-/ | the enemy." \\//
- ||\\ '----' //|| \/
- || \\/ \// ||
-